:root {
  font-family: 'JetBrains Mono', 'Fira Code', monospace, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #0f1118;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* 极客风格变量 */
  --neon-blue: #00f3ff;
  --neon-purple: #9d00ff;
  --neon-green: #00ff9d;
  --dark-bg: #0f1118;
  --darker-bg: #080a10;
  --card-bg: #171a24;
  --highlight: #2a2f42;
}

a {
  font-weight: 500;
  color: var(--neon-blue);
  text-decoration: inherit;
  position: relative;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--neon-purple);
  text-shadow: 0 0 8px var(--neon-blue);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: 'JetBrains Mono', 'Fira Code', monospace, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--dark-bg);
  background-image: 
    linear-gradient(rgba(15, 17, 24, 0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 17, 24, 0.9) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(42, 47, 66, 0.3), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 4px;
  border: 1px solid rgba(0, 243, 255, 0.2);
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: rgba(23, 26, 36, 0.8);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

button:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

button:hover::before {
  left: 100%;
}

button:focus,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--neon-blue);
}

.card {
  padding: 2em;
}

#app {
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* 添加滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--highlight);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-blue);
}

/* 添加选择文本样式 */
::selection {
  background: rgba(0, 243, 255, 0.3);
  color: #fff;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #1a1a2e;
    background-color: #f0f0f0;
    --dark-bg: #f0f0f0;
    --darker-bg: #e0e0e0;
    --card-bg: #ffffff;
    --highlight: #d0d0d0;
  }
  
  body {
    background-image: 
      linear-gradient(rgba(224, 224, 224, 0.5) 1px, transparent 1px),
      linear-gradient(90deg, rgba(224, 224, 224, 0.5) 1px, transparent 1px);
  }
  
  body::before {
    background: radial-gradient(circle at 50% 50%, rgba(208, 208, 208, 0.7), transparent 70%);
  }
  
  a:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 8px rgba(157, 0, 255, 0.5);
  }
  
  button {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(157, 0, 255, 0.2);
  }
  
  button:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.3);
  }
  
  button:focus,
  button:focus-visible {
    box-shadow: 0 0 0 2px var(--neon-purple);
  }
}
